<?php
// +----------------------------------------------------------------------
// | tpapi.
// +----------------------------------------------------------------------
// | FileName: Lists.php
// +----------------------------------------------------------------------
// | Author: King east <1207877378@qq.com>
// +----------------------------------------------------------------------


namespace ke\thinkApi\src\attribute;


class Lists
{
    private $config = [];

    public function __construct(array $conf = [])
    {
        $this->config = $conf;
    }

    public function setField($value)
    {
        $this->config['field'] = $value;
    }

    public function getField()
    {
        return $this->config['field'] ?? '*';
    }

    public function setWhere($where)
    {
        $this->config['where'] = $where;
    }

    public function getWhere()
    {
        return $this->config['where'] ?? null;
    }

    public function setOrder($value)
    {
        $this->config['order'] = $value;
    }

    public function getOrder()
    {
        return $this->config['order'] ?? null;
    }

}